[AJUDA] Cmd de levar pra HQ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Cmd de levar pra HQ (
/showthread.php?tid=152215)
[AJUDA] Cmd de levar pra HQ -
[Ips]Guh - 03.06.2010
eu queria aquele comando pra mandar pra HQ,tipo assim : /mandarhq ID
Re: [AJUDA] Cmd de levar pra HQ -
ipsBruno - 03.06.2010
QueTal?
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/mandarhq", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Uso do Comando: /mandarhq [ID]");
SetPlayerPos(strval(tmp),COOORDENADAS AQUI);
return 1;
}
return 0;
}
COORDENADAS AQUI -> Coordenadas HQ
Re: [AJUDA] Cmd de levar pra HQ -
Caio_Cartaxo - 03.06.2010
pawn Code:
if(strcmp(cmd, "/levarhq", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /calar [playerid/Parte-do-Nick]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SpawnPlayer(playa);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб autoriazado а usar este comando");
}
}
return 1;
}
Sу adaptar para seu gm
Re: [AJUDA] Cmd de levar pra HQ -
ipsBruno - 03.06.2010
Putz Caio que
Copie hein, depois o
Russo diz que sou eu