SA-MP Forums Archive
]HELP[NPCS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ]HELP[NPCS (/showthread.php?tid=120667)



]HELP[NPCS - deather - 12.01.2010

I use the gl_npcs fs for my server. each time my server loads the traindrivers get a different vehicle. but in the script i have used the train d only
Код:
if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script

	new playername[64];
	GetPlayerName(playerid,playername,64);

	if(!strcmp(playername,"TrainDriverLV",true)) {
    PutPlayerInVehicle(playerid,538,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
 	}
	else if(!strcmp(playername,"TrainDriverSF",true)) {
	  PutPlayerInVehicle(playerid,538,0);
	  SetPlayerColor(playerid,0xFFFFFFFF);
	}
	else if(!strcmp(playername,"TrainDriverLS",true)) {
	  PutPlayerInVehicle(playerid,538,0);
	  SetPlayerColor(playerid,0xFFFFFFFF);
	}
this is my code