Can you help me to Find my NPC?
#2

Use simple /goto CMD. i'll give you simple
PHP код:
    if(strcmp(cmd"/goto"true) == 0)
    {
        if(
Player[playerid][pAdmin] <= 0)return SendClientMessage(playerid,COLOR_GREY,""#servn" {adadad}Ar Gaqvt Ufleba");
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_GRAYWHITE""#servn" {ffffff}/goto {ffd1d2}[playerid/PartOfName]");
        
new Float:g_plocx[3];
        
giveplayerid ReturnUser(tmp);
        if(
IsPlayerConnected(giveplayerid))
        {
            
GetPlayerPos(giveplayeridg_plocx[0], g_plocx[1], g_plocx[2]);
            
SetPlayerPos(playeridg_plocx[0]+1g_plocx[1], g_plocx[2]+1.0);//plocy+1
        
}
        else
        {
            
format(stringiiisizeof(stringiii), ""#servn" {ffffff}%d {ffd1d2}Es Motamashe Araa Shemosuli", giveplayerid);
            
SendClientMessage(playeridCOLOR_REDstringiii);
        }
        return 
1;
    } 
Use this.
Reply


Messages In This Thread
Can you help me to Find my NPC? - by RedRex - 10.11.2016, 15:14
Re: Can you help me to Find my NPC? - by Pearson - 11.11.2016, 00:34
Re: Can you help me to Find my NPC? - by Dayrion - 11.11.2016, 01:24
Re: Can you help me to Find my NPC? - by Pearson - 11.11.2016, 01:25

Forum Jump:


Users browsing this thread: 1 Guest(s)