05.12.2010, 13:56
(
Последний раз редактировалось ipsBruno; 05.12.2010 в 19:12.
)
Nem Ligo,pega e adapta
Engole isso ai -q:
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;
}