Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmd, "/grana", true))
- {
- new tmp[256];
- new plid;
- new grana;
- tmp = strtok(cmdtext, idx);
- plid = strval(tmp);
- tmp = strtok(cmdtext, idx);
- grana = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "USE: /grana [id] [quantia]");
- return 1;
- }
- if(IsPlayerConnected(plid) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Jogador n�o conectado.");
- return 1;
- }
- if(playerid == plid)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Voc� n�o pode dar grana para voc� mesmo!");
- return 1;
- }
- GivePlayerMoney(plid, grana);
- return 1;
- }
Add Comment
Please, Sign In to add comment