PHP код:
new Ckecp[3][MAX_PLAYERS], bag[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(bag[playerid] > 0)
{
Ckecp[0][playerid] = CreatePlayerObject(playerid, 19946, 2482.0786,-1464.0013,24.0162, 0.00000, 0.00000, 0.00000); // CP Verde
Ckecp[1][playerid] = CreatePlayerObject(playerid, 19946, 2445.7332,-1759.4276,13.5907, 0.00000, 0.00000, 0.00000); // CP Verde
Ckecp[2][playerid] = CreatePlayerObject(playerid, 19946, 1997.3832,-2079.2957,13.5469, 0.00000, 0.00000, 0.00000); // CP Verde
}
return 1;
}
PHP код:
DestroyPlayerObject(playerid, Ckecp[0][playerid]);
DestroyPlayerObject(playerid, Ckecp[1][playerid]);
DestroyPlayerObject(playerid, Ckecp[2][playerid]);