SA-MP Forums Archive
If NpcBot Help - 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)
+--- Thread: If NpcBot Help (/showthread.php?tid=500402)



If NpcBot Help - alishvasis - 12.03.2014

How To Use If Player Is NPC BOt Dont Re Spawn Npc BOt
Код:
dcmd_allcar(playerid,params[])
{
    if(Account[playerid][pAdminlevel])
    {
	#pragma unused params
	for(new i = 0; i < MAX_VEHICLES; i++)
   {
     SetVehicleToRespawn(i);
   }
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "{FF0000}%s Respawned.",name);
    SendClientMessageToAll(COLOR_PINK, string);
    return 1;
   }
    return 1;
}