Can you help me to Find my NPC?
#1

First of All Hi guyz i miss you so much
now.. When i joined my server i saw The NPCS Chat but i dont know Where i save NPC To Edit Messages how to i can Find my NPC File?
Reply
#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
#3

Or if use zmcd with ssanf which is more faster than strcmp:
PHP код:
CMD:goto(playeridparams[])
{
    new 
cible;
    if(
sscanf(params"u"cible)) return SCM(playerid, -1"/goto [playerid/name]");

    if(!
IsPlayerConnected(cible)) 
        return 
1;

    new 
Float:x,
        
Float:y,
        
Float:z;

    
GetPlayerPos(ciblexyz);
    
SetPlayerPos(playeridx+1y+1z);
    
SetPlayerInterior(playeridGetPlayerInterior(cible));
    
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(cible));
    return 
1;

Reply
#4

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Or if use zmcd with ssanf which is more faster than strcmp:
PHP код:
CMD:goto(playeridparams[])
{
    new 
cible;
    if(
sscanf(params"u"cible)) return SCM(playerid, -1"/goto [playerid/name]");
    if(!
IsPlayerConnected(cible)) 
        return 
1;
    new 
Float:x,
        
Float:y,
        
Float:z;
    
GetPlayerPos(ciblexyz);
    
SetPlayerPos(playeridx+1y+1z);
    
SetPlayerInterior(playeridGetPlayerInterior(cible));
    
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(cible));
    return 
1;

Yay i know , i just writed simple CMD XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)