• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Pawno

#1
mIRC/pawn Scripting / Re: Set World Bounds in Pawno?
April 18, 2011, 12:14:34 PM
Only for all players.
#2
mIRC/pawn Scripting / Re: [help]Money bug.
February 17, 2011, 12:13:16 AM
Gups ? ...
#4
mIRC/pawn Scripting / /c buyweps (In gups) Help-me!?
January 29, 2011, 09:20:39 PM
can anybody give me the code to buy weapons only in Ammunation example:
you type / c buyweps and a message appears "You must go up the Ammunation"
after you get there you can buy but the weapon will cost $ 500 if you do not have that money you can not buy.

ps: I know it's asking for more but I'm in desperate need, thank you all  :-*


@Edit -

I figured out how to do this, but thanks to all.
#5
Not work in pawno (i think).   :D
#6
Put in. public OnPlayerConnect(playerid) GameTextForPlayer(playerid,"Welcome"); you can take the default color "pink" for others it is just you get this link > http://famp.ru/wiki/GameTextCodes example

public OnPlayerConnect(playerid)
{
   ServerInfo[0][Countx] = 3;
   SetWaterLevel(6.0);
   SetGamespeed(100);
   SetGravity(100);
   SetPlayerMoney(playerid,0);
   GetPlayerName(playerid,gPlayers[playerid],MAX_PLAYER_NAME);
   
   PlayerInfo[playerid][Spawned] = 0;
   new string[256];
   format(string,256,"** [%d] %s has joined the server.",playerid,gPlayers[playerid]);
   print(string);
   format(string,256,"3** [%d] %s has joined the server.",playerid,gPlayers[playerid]);
   SendToIRC(string);

   format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
   new loggedin, lluip[256], IP[256]; loggedin = dini_Int(file, "Login"), lluip = dini_Get(file, "Ip");
   if(dini_Exists(file)) {
       if (loggedin == 1 && CompariseIp(playerid) == 1) {
         new level, stats, nogoto, noloc, cash, szMsg[256];
         level = dini_Int(file, "Level");
         stats = dini_Int(file, "Stats");
         nogoto = dini_Int(file, "NoGoto");
         noloc = dini_Int(file, "NoLoc");
         cash = dini_Int(file, "Cash");
         GetPlayerIp(playerid,IP,256);

         PlayerInfo[playerid][Logged] = 1;
         PlayerInfo[playerid][Level] = level;
         PlayerInfo[playerid][Stats] = stats;
         PlayerInfo[playerid][NoGoto] = nogoto;
         PlayerInfo[playerid][NoLoc] = noloc;
                        GameTextForPlayer(playerid,"Welcome to blablabla server");
         SendClientMessage(playerid,COLOR_GREEN,"You have auto-loged in!");
         format(szMsg,sizeof(szMsg),"Nick:[ %s ] Level:[ %d ] Status:[ %s ]",gPlayers[playerid],level,StatusTag(level));
         SendClientMessage(playerid,COLOR_GREEN,szMsg);
         SetPlayerMoney(playerid,0);
         SetPlayerMoney(playerid,cash);
      }
      else {
         SendClientMessage(playerid, COLOR_GREEN, "Please login to this account!");
         SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c login [Password]");
         PlayerInfo[playerid][Logged] = 0;
      }
   }
   else {
                GameTextForPlayer(playerid,"Welcome to blablabla server");
      SendClientMessage(playerid, COLOR_GREEN, "Your nick is not registered. Please register to protect it!");
      SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c register [Password]");
      PlayerInfo[playerid][Logged] = 2;
      PlayerInfo[playerid][Stats] = 2;
   }
   return 1;
}
#7
mIRC/pawn Scripting / Help /c freeze all
January 28, 2011, 11:43:41 AM
I need the code /c freeze all in GUPS

/c unfreezeall

   else if (strcmp(cmd, "freezeall", true) == 0) {
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if(!IsPlayerCommandLevel(playerid,"healall")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
      else {
         FreezeAll();
      }
      return 1;
   }
Add this some where on the bottom of your script
Code:
stock FreezeAll()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) TogglePlayerControllable(i,1);
    }
}

@Edit --

Thanks to everyone who helped me
#8
mIRC/pawn Scripting / Re: Help GUPS...
January 26, 2011, 07:22:14 PM
I want each one has a different message and not all equal  :P
#9
mIRC/pawn Scripting / Help GUPS...
January 26, 2011, 03:48:53 PM
how do I get a message to specify a pickup?  ???
                                                           
#10
mIRC/pawn Scripting / Re: how to add cars on my server ??
December 22, 2010, 12:43:44 AM
Try,

public OnGameModeInit() //Example
{
    AddStaticVehicle(150, -1343.22204589, 1494.09130859, 298.59179687, 12, 13);
return 1;
}

public OnGameModeInit()
{
    AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);
return 1;
}


Vehicle id's: http://famp.ru/wiki/VehicleIDs
Car colors: http://famp.ru/wiki/CarColors

good lucky :)


#11
mIRC/pawn Scripting / Speedometer In gups help me :/
December 19, 2010, 04:33:10 AM
gups speedometer how to put in when I get in the car?