toribio

toribio

Oct 26th, 2008
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. if(!strcmp(cmd, "/vida", true))
  2. {
  3.     new plid, Float:vida;
  4.     tmp = strtok(cmdtext, idx);
  5.     plid = strval(tmp);
  6.     tmp = strtok(cmdtext, idx);
  7.     vida = floatstr(tmp);
  8.     if(!strlen(tmp))return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /vida [playerid] [quantia]");
  9.     if(IsPlayerConnected(plid))
  10.     {
  11.         SetPlayerHealth(plid, vida);
  12.         SendClientMessage(playerid, "Pronto...");
  13.     } else {
  14.         SendClientMessage(playerid, 0xFF0000AA, "Jogador nοΏ½o conectado!");
  15.     }
  16.     return 1;
  17. }
Add Comment
Please, Sign In to add comment