20.06.2014, 23:44
Eu queria por esse comando na tecla como eu devo fazer ? tem algum tutorial que possa me ajudar ?
pawn Код:
if (strcmp(cmdtext, "/irp", true)==0)
{
if (!floatsqroot(PosX[playerid]+PosY[playerid]+PosZ[playerid]))
{
return SendClientMessage(playerid, 0xAFAFAFAA, "{f24848}INFO -{D8D8D8} Vocк precisa salvar a posiзгo antes ( /sp )");
}
else
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), PosX[playerid], PosY[playerid], PosZ[playerid]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), PosA[playerid]);
SetCameraBehindPlayer(playerid);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), PosI[playerid]);
}
else
{
EnCoche[playerid] = false;
SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
SetPlayerFacingAngle(playerid, PosA[playerid]);
SetCameraBehindPlayer(playerid);
}
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid, PosI[playerid]);
SendClientMessage(playerid, 0x20FF20AA, "{FF9933}INFO -{D8D8D8} Posiзгo carregada com Sucesso");
}
return 1;
}