Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:rob(playerid, params[])
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rob [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pLevel] < 7)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be atleast level 7 to use this command.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if (ProxDetectorS(2.0, playerid, giveplayerid))
- {
- //put your shit here
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Player is not near you.");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment