28.10.2009, 10:35
Quote:
Originally Posted by Compton's Eazy E
This is the working code:
Код:
if (IsPlayerNPC(playerid)) { SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid); } |
so it will look like this
Код:
public OnPlayerRequestClass(playerid, classid) { if (IsPlayerNPC(playerid)) { SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid); } return 1; }