28.10.2009, 10:20
the NPC must skip the login
how must i do that?
how must i do that?
Originally Posted by breakpaper
can you make that script?
i don't get it! |
public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
return 1;
else
{
The content here, etc...
if (IsPlayerNPC(playerid)) { SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid); }
public OnPlayerRequestSpawn(playerid) { if(IsPlayerNPC(playerid)) return 1; // Here your functions... return 1; } public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) return 1; // Here your functions... return 1; }
Originally Posted by Compton's Eazy E
This is the working code:
Код:
if (IsPlayerNPC(playerid)) { SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid); } |
public OnPlayerRequestClass(playerid, classid) { if (IsPlayerNPC(playerid)) { SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 ); SpawnPlayer(playerid); } return 1; }