Quote:
Originally Posted by iPLEOMAX
pawn Код:
public OnPlayerRequestClass(playerid, classid) { new sendername[MAX_PLAYER_NAME]; if(IsPlayerNPC(playerid)) { GetPlayerName(playerid, sendername, sizeof sendername); if(!strcmp(sendername,"Dealer",true)) { SetSpawnInfo(playerid, NO_TEAM, 280, 2319.1616,17.7953,26.4766,39.4589,-1,-1,-1,-1,-1,-1); print("DEALER SPAWNED with ID%i", playerid); return 1; } }
And make sure it always returns 1 for this npc under OnPlayerRequestSpawn.
|
Thank you sir, was dying to get this to work. REP+ for you.