#1

I solved the first question,, but how can i make a NPC respawn at start. /npcrestart (id)
Reply
#2

bump
Reply
#3

What do you mean by make it " respawn at start " ?
Reply
#4

like reload the path of the NPC from the beginning
Reply
#5

StopRecordingPlayback

then

StartRecordingPlayback


Reply
#6

Simple, via ZCMD & SSCANF:

pawn Код:
CMD:npcrestart(playerid,params[])
{
    new id, string[128];

    if(sscanf(params,"d",id)) return SendClientMessage(playerid,-1,"USAGE: /npcrestart [npc id]  -  Enter The Bot ID To Restart.");

    if(!IsPlayerNPC(id)) return SendClientMessage(playerid,-1,"The specified player is not a bot.");

    SpawnPlayer(id);

    format(string,128,"You Have Reset Bot ID  %d  At Its Original Start Path.",id); SendClientMessage(playerid,-1,string);

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)