20.04.2010, 18:25
hi i want to make that when player types /stunt he got to the last stunt where he was.
example: im writing /stunt and get to the first stunt, i pass about 3 stunts, and disconnect from the server, then write /stunt and get to the stun 3 zone
I have cp's, command:
example: im writing /stunt and get to the first stunt, i pass about 3 stunts, and disconnect from the server, then write /stunt and get to the stun 3 zone
I have cp's, command:
Код:
dcmd_stunt(playerid,params[]) { #pragma unused params if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "cant with car"); new string[64],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof pName); format(string, sizeof string, "is in stunt", pName); SendClientMessageToAll(ORRANGE, string); CreateCheckpoint(GLOBAL_OWNER_ID, STUNT, -2553.9128,730.9096,45.0234,1.5); SetCheckpointVirtualWorld(STUNT, 5); StartCheckpointSeeking(); new stuntcar = CreateVehicle(522,-2402.2542,734.2985,35.0156,89.0493,0,0,20); SetVehicleVirtualWorld(stuntcar, 5); SetPlayerVirtualWorld(playerid,5); SetPlayerPos(playerid,-2402.2542,734.2985,35.0156); PutPlayerInVehicle(playerid, stuntcar, 0); return 1; }