11.11.2012, 13:14
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
new
name[ MAX_PLAYER_NAME ]
;
GetPlayerName( playerid, name, MAX_PLAYER_NAME );
if( !strcmp( name, "john_doe", true ) ) SetSpawnInfo( playerid, 0, 299, 2495.3494, -1687.0780, 13.5152, 358.8612, 26, 36, 28, 150, 46, 1 );
else if( !strcmp( name, "jane_does", true ) ) SetSpawnInfo( playerid, 0, 281, 2486.3142, -1647.9170, 14.0703, 182.1866, 26, 36, 28, 150, 46, 1 );
else SetSpawnInfo( playerid, 0, 299, x, y, z, angle, 26, 36, 28, 150, 46, 1 ); // Change the coordinates
return 1;
}