10.02.2010, 23:41
Код:
if(strcmp(cmd, "/park",true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pCarKey] >= 1) { new Float:pX,Float:pY,Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); new Float:pAngle; GetPlayerFacingAngle(playerid,pAngle); PlayerInfo[playerid][cLocationx] = Float:pX; PlayerInfo[playerid][cLocationy] = Float:pY; PlayerInfo[playerid][cLocationz] = Float:pZ; PlayerInfo[playerid][cAngle] = Float:pAngle; SendClientMessage(playerid,COLOR_WHITE, " You Have Parked Your Car In this place "); return 1; } } return 1; }