14.05.2011, 20:26
Hm. Vou lhe dar o comando que eu tenho aqui.
pawn Код:
if(strcmp(cmd, "/marcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
SendClientMessage(playerid, COLOR_GRAD1, " {FFFFFF}** [{FF0000}AVISO{FFFFFF}]Marca de teleporte feita.");
}
return 1;
}
if(strcmp(cmd, "/irmarca", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
}
SendClientMessage(playerid, COLOR_GRAD1, " {FFFFFF}** [{FF0000}AVISO{FFFFFF}]Teleportado");
SetPlayerInterior(playerid,0);
}
else
}
return 1;
}