Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by Tanush123
pawn Код:
CMD:rape(playerid, params[]) { if(gTeam[playerid] == TEAM_COP) return SendClientMessage(playerid, red, "Cops can't rape other players!"); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,red,"You can't rape a player if you are in a vehicle!"); if(IsSpawned[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"You can't use this command when you are dead or spawning."); if(GetPVarInt(playerid,"RapeTime")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"Please wait 10 seconds before rape again."); if (GetDistanceBetweenPlayers(playerid,playerid2)>2) return SendClientMessage(playerid, red, "You are NOT near something to attempt to rape"); if(GetDistanceBetweenPlayers(playerid,playerid2)<2) { SendClientMessage(playerid, COLOR_WHITE, "Raped player."); SetPVarInt(playerid,"RapeTime",GetTickCount()+10000); } return 1; }
|
error 017: undefined symbol "playerid2"
error 017: undefined symbol "playerid2"