Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- if(strcmp(cmd,"/ss",true) == 0 || strcmp(cmd,"/pokazilicnukartu",true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /ss [playerID/DeoImena]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if (ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Da bi pogledali svoju licnu kartu kucajte /licnakarta"); return 1; }
- ShowStats(giveplayerid,playerid)
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s pokazuje svoju licnu kartu igracu %s.", sendername ,giveplayer);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Igrac nije blizu vas!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Igrac je Offline!");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment