• 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 - Synx

#1
Please Fix Human And Zombie Classes they dont show...
if i open Server and connect to server if i choose classes No SKin showing.
#2
mIRC/pawn Scripting / Re: !givecash fails
April 25, 2011, 11:09:34 AM
That work now, but when i type id/nick someone's it sends cash to me no matter what.
#3
mIRC/pawn Scripting / Re: !wep buy
April 24, 2011, 09:44:08 PM
Thanks, works!  ;)

-LOCK-
#4
mIRC/pawn Scripting / !givecash fails
April 24, 2011, 09:25:05 PM
Quoteelse if (strcmp(cmd, "!givecash", true) == 0) {
          new tmp2[256], plr;
      tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if (!strlen(tmp2)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: !givecash [Nick/ID] [Amount]");
      else if (GetPlayerHandCash(gPlayers[playerid]) < StrToInt(tmp2)) SendClientMessage(playerid,COLOR_GREEN, "Error: You havent got the needed money.");
      else if (plr != INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else if(!IsPlayerRegistered(gPlayers[plr])) SendClientMessage(playerid, COLOR_RED, "Error: That nick is not registered!");
      else if (!IsNumeric(tmp2)) SendClientMessage(playerid,COLOR_GREEN, "Error: Invalid Amount!");
      else {
         format(szMsg,sizeof(szMsg),"You have sent:[ $%d ] to:[ %s ]",tmp,gPlayers[playerid]);
         SendClientMessage(playerid,COLOR_GREEN, szMsg);
         DecPlayerHandCash(playerid,StrToInt(tmp));
         IncPlayerHandCash(plr,StrToInt(tmp));
      }
      return 1;
      }

When I want send some one money it's say all time "invalid id" I type nick "invalid id". HELP!!!
#5
mIRC/pawn Scripting / Re: !wep buy
April 24, 2011, 09:15:47 PM
Quote}
   else if (strcmp(cmd, "!wep", true) == 0) {
   new wep,pmon;
       pmon = GetPlayerMoney(playerid);
   tmp = strtok(cmdtext, idx);
   if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
   else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID]");
   else {
      wep = FindWepIDFromString(tmp);
      SetPlayerMoney(playerid,pmon - 1000);
       if(wep != 33) SetPlayerWeapon(playerid,wep,9999999);
      else SendClientMessage(playerid,COLOR_RED,"You can't get this weapon, sorry.");
   }
       if(pmon == 0) {
          SendClientMessage(playerid,COLOR_RED,"Sorry, you can't get this weapon, weapon costs: 1000$ !");
        }

I fix this...
Quoteif(pmon == 0) {
but when player money is 0 he can still get weapons..
#6
mIRC/pawn Scripting / Re: !wep buy
April 24, 2011, 08:13:15 PM
Thanks :)
#7
mIRC/pawn Scripting / !wep buy
April 24, 2011, 07:26:22 PM
}
else if (strcmp(cmd, "!wep", true) == 0) {
new wep;
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID]");
else {
wep = FindWepIDFromString(tmp);
GivePlayerMoney(playerid, -1000);
  if(wep != 33) SetPlayerWeapon(playerid,wep,9999999);
else SendClientMessage(playerid,COLOR_RED,"You can't get this weapon, sorry.");
}
return 1;
}


I need make when someone want get wep than him remove money // I try no good :D
and if player doesn't have money than he gets mesage "Sorry, you can't get this weapon, weapon costs:1000$ !"
#8
mIRC/pawn Scripting / Re: help..
April 24, 2011, 09:27:05 AM
Quote from: BIG[H] on April 23, 2011, 08:18:12 PM
Problem is at
Quote
if(wep != 33, 30) SetPlayerWeapon(playerid,wep,9999999);

Edit as

Quoteif(wep != 33 || 30) SetPlayerWeapon(playerid,wep,9999999);

Thanks. :)
#9
mIRC/pawn Scripting / help..
April 23, 2011, 05:00:54 PM
else if (strcmp(cmd, "!wep", true) == 0) {
new wep;
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID]");
else {
wep = FindWepIDFromString(tmp);
if(wep != 33, 30) SetPlayerWeapon(playerid,wep,9999999);
else SendClientMessage(playerid,COLOR_RED,"You can't get this weapon, sorry.");
}
return 1;
}


I get this error when compile:
warning 206: redundant test: constant expression is non-zero

I need to make this work for two weapons
#10
mIRC/pawn Scripting / Player Class Help
April 16, 2011, 08:28:05 PM
Hello.

Can any say how to make Player Classes skins?