ZCMD...
#1

Hello!

I'm a new user in zcmd.

I have a cmd for teleport in pos x y z but it's not work, look:

pawn Код:
else if(!strcmp(param, "pos", true, 3))
    {
        new Float:x,
            Float:y,
            Float:z;
       
        if(sscanf(params, "fff", x, y, z))
        {
            return SendClientMessage(playerid, -1, "/tp pos <X Y Z> (Sans les virgules)");
        }
        SetPlayerPos(playerid, x, y, z);
        SetInterior(playerid, 0);
        SetVirtualWorld(playerid, 0);
       
        SendClientMessage(playerid, -1, "Vous venez d'кtre tйlйportй.");
    }
Thx
Reply
#2

PHP код:
COMMAND:tp(playerid,params[])
{
    new 
tmp[40], auxParams[124];
    if(
sscanf(params"s[40]S()[124]"tmpauxParams))
    {
        return 
1;
    }
    if(
strcmp(tmp"pos"true)==0)
    {
            new 
Float:x
            
Float:y
            
Float:z;
        
            if(
sscanf(auxParams"fff"xyz))
            {
                 return 
SendClientMessage(playerid, -1"/tp pos <X Y Z> (Sans les virgules)");
            }
            
SetPlayerPos(playeridxyz);
            
SetInterior(playerid0);
            
SetVirtualWorld(playerid0);
            return 
1;
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)