19.09.2016, 15:43
Just easy tricks:
If you do this statements always at the top of these callbacks..nothing can happen with them and they will spawn directly
If you wanna have Zombie NPCs you have to use a Plugin..like FCNPC
Just look at some tutorials how you create them
PHP код:
//Under OnPlayerConnect always@TOP!
if(IsPlayerNPC(playerid)) return 1;
//Under OnPlayerRequestClass
if(IsPlayerNPC(playerid))
{
SetSpawnInfo(playerid,0,299,0,0,3,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
return 1;
}
//Under OnPlayerSpawn
if(IsPlayerNPC(playerid))
{
new n[MAX_PLAYER_NAME];
GetPlayerName(playerid,n,MAX_PLAYER_NAME);
if(!strcmp(n,"Peter"))
{
//For example if Peter spawns:
SetPlayerSkin(playerid, 69); //Like this number :3
}
return 1;
}
If you wanna have Zombie NPCs you have to use a Plugin..like FCNPC
Just look at some tutorials how you create them