Advertisement
Raptor2x

Untitled

Jul 3rd, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.82 KB | None | 0 0
  1.     if (format(cmd, 256, "skin"))
  2.     {
  3.         if (GetPlayerTeam(playerid) == TEAM_HUMAIN)
  4.         {
  5.             tmp = strtok(cmdtext, idex);
  6.             if (!strlen(tmp))
  7.             {
  8.                 SendClientMessage(playerid, rouge, "USAGE: /skin [id skin]");
  9.                 return 1;
  10.             }
  11.             haz = strval(tmp);
  12.             SetPlayerSkin(playerid, haz);
  13.             format(string, sizeof(string),"Tu as changé de skin pour l'ID: %d", haz);
  14.             SendClientMessage(playerid, rouge, string);
  15.         }
  16.  
  17.         if (haz == 162)
  18.         {
  19.             format(string, sizeof(string),"Un zombie-humain, t'as déjà vu ça ?!", haz);
  20.             SendClientMessage(playerid, rouge, string);
  21.             SetPlayerSkin(playerid, 137);
  22.             return 1;
  23.         }
  24.  
  25.         if (GetPlayerTeam(playerid) == TEAM_ZOMBIE)
  26.         {
  27.         SendClientMessage(playerid, rouge, "Tu dois être un humain pour utilisé cette commande");
  28.         }
  29.     }
  30.     return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement