04.06.2014, 07:55
use this in your OnGameModeInit:
then use this in OnPlayerConnect:
And use this in OnPlayerRequestClass:
And Finally use this in OnPlayerSpawn:
PHP код:
ConnectNPC("MyNPC" , "npcidle"); // npcidle means you should have a .pwn file in your npcmodes
// you can find it in samp server files that uploaded in samp site
PHP код:
if(IsPlayerNPC(playerid) return 1;
PHP код:
if(IsPlayerNPC(playerid) return SpawnPlayer(playerid);
PHP код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid , pName , sizeof(pName));
if(!strcmp(playername,"Taxi1",true))
{
SetPlayerPos(playerid , x ,y ,z);
SetPlayerFacingAngle(playerid , angle);
}