[PEDIDO] /ir para VIPS
#4

aqui
pawn Код:
if(strcmp("/ir", cmdtext, true, 3) == 0)
{
if(PlayerInfo[playerid][VIP] == 1)
{
new Float:x,Float:y,Float:z;
new escolher[256];
escolher = KcmD(1, cmdtext);
if(!strlen(escolher)) return SendClientMessage(playerid,COR_AQUI,"Use: /ir [ID]");
GetPlayerPos(strval(escolher),x,y,z);
SetPlayerPos(playerid,x,y+2,z);
}else{
SendClientMessage(playerid,COR_AQUI,"Voce nao й Vip");
return true;
}
return true;
}
Add isto ao final do gm
pawn Код:
stock KcmD(param, cmdtext[])
{
    new string[128], pos, var;
    format(string, sizeof(string), "%s ", cmdtext);

    while((pos = strfind(string, " ", true)) != -1)
    {
        if(var == param) return string;
        var++;

        strdel(string, 0, pos + 1);
        if(strcmp(string, " ", true, pos) == 0) goto end;
    }

end:
    string[0] = '\0';
    return string;
}
Reply


Messages In This Thread
[PEDIDO] /ir para VIPS - by [AF]Junior - 24.02.2011, 14:43
Re: [PEDIDO] /ir para VIPS - by deregudegu - 24.02.2011, 14:58
Re: [PEDIDO] /ir para VIPS - by Pharrel - 24.02.2011, 15:43
Re: [PEDIDO] /ir para VIPS - by -GooGle- - 24.02.2011, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)