29.10.2012, 18:46
pawn Код:
if(strcmp(cmd, "/corda", true) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
Sliding[playerid] = 1;
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, true);
SetTimerEx("Slide", 400, 0, "i", playerid);
SendClientMessage(playerid, COLOR_WHITE, "Vocк estб descendo do helicуptero!");
}
else
{
SendClientMessage(playerid,-1, "{FF0000}[ERRO] Vocк nгo estб em um helicуptero!");
}
return 1;
}
if(strcmp(cmd, "/parar", true) == 0)
{
if(Sliding[playerid] == 1)
{
Sliding[playerid] = 0;
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, COLOR_WHITE, "Vocк chegou ao chгo!");
DestroyObject(Corda[playerid]);
}
return 1;
}