07.01.2012, 08:41
but i did it.Here is my ls command:
Код:
if (strcmp("/ls", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), 2497.0798, -1666.4255, 13.3438); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0); } else { SendClientMessage(playerid, YELLOW, "ERROR: You need to be the driver!"); return 1; } } else { SetPlayerPos(playerid, 2497.0798, -1666.4255, 13.3438); SetPlayerFacingAngle(playerid, 0); } if(isindm1[playerid]==1) return SendClientMessage(playerid, YELLOW, "You need to exit the current deathmatch first."); new string[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof(string),""RED"[Tp~Info] "GREEN"%s Teleported To Los Santos",pName); SendClientMessageToAll(COLOR,string); return 1; }