[AJUDA]Comando /procurar
#6

Nem Ligo,pega e adapta


Engole isso ai -q:

pawn Код:
//toppogm
new timer[500];
forward FuckYou(playerid,give);
public FuckYou(playerid,give)
{
    if(!IsPlayerConnected(give)) {
        KillTimer(timer[playerid]);
        return SendClientMessage(playerid, COR_BRANCO, "O Player Desconecto");
    }
    static Float:X,Float:Y,Float:Z;
    GetPlayerPos(give,X,Y,Z);
    SetPlayerCheckpoint(playerid, X,Y,Z, 6);
    return true;

}


//onplayecommandtext

new cmd[128], idx;
cmd = strtok(cmdtext, idx);

if(strcmp(cmd,"/procurar",true) == 0)
{
    new tmp[128];
    new giveplayerid;
    tmp = strtok(cmdtext, idx);
    giveplayerid = strval(tmp);
    if(!strlen(tmp)) return SendClientMessage(playerid,COR_BRANCO,"USO: /procurar [id]");
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COR_BRANCO, "id invalido.");
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(giveplayerid, X,Y,Z);
    SetPlayerCheckpoint(playerid, X,Y,Z, 6);
    timer[playerid] = SetTimerEx("FuckYou",4000,true,"ii",playerid,giveplayerid);
    return 1;
}
Reply


Messages In This Thread
[AJUDA]Comando /procurar - by jonas_gabriel - 05.12.2010, 00:11
Re: [AJUDA]Comando /procurar - by BurnouT_ - 05.12.2010, 13:34
Re: [AJUDA]Comando /procurar - by jonas_gabriel - 05.12.2010, 13:44
Re: [AJUDA]Comando /procurar - by ipsBruno - 05.12.2010, 13:50
Re: [AJUDA]Comando /procurar - by jonas_gabriel - 05.12.2010, 13:51
Re: [AJUDA]Comando /procurar - by ipsBruno - 05.12.2010, 13:56
Re: [AJUDA]Comando /procurar - by Falcon. - 05.12.2010, 14:12
Re: [AJUDA]Comando /procurar - by BurnouT_ - 05.12.2010, 15:23
Re: [AJUDA]Comando /procurar - by jonas_gabriel - 05.12.2010, 19:04
Re: [AJUDA]Comando /procurar - by zSuYaNw - 05.12.2010, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)