18.11.2013, 15:57
i create an NPC bot and it's not spawning in my seated place it's just standing in 0,0,0 cordinates
public OnPlayerSpawn(playerid)
{
if( IsPlayerNPC( playerid ) )
{
new npcname[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, npcname, sizeof( npcname ) );
if( !strcmp( npcname, "Sandra_Boveriene", true ) )
{
SetPlayerSkin( playerid, 141 );
SetPlayerPos( playerid, 150.9816, -157.4454, 3.2859 );
print( "atsspawninp" );
}
return true;
}