[Ajuda] Sistema cordinha heli
#4

pawn Код:
new Corda[MAX_PLAYERS];//no topo

public Slide(playerid)
{
    if(Sliding[playerid] == 1)
    {
    new Float:X;
    new Float:Y;
    new Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z - 5.00);
Corda[playerid] = CreateObject(19087, X, Y, Z, 0.0, 0.0, 0.0, 300.0);
    SetTimerEx("Slide", 1000, 0, "i", playerid);
    }
        return 1;
}
pawn Код:
if(strcmp(cmd, "/parar", true) == 0)
   {
   if(Sliding[playerid] == 1)
   {
   Sliding[playerid] = 0;
   TogglePlayerControllable(playerid, 1);
   SendClientMessage(playerid, COLOR_WHITE, "Vocк chegou ao chгo");
DestroyObject(Corda[playerid]);
   }
   return 1;
}
Reply


Messages In This Thread
Sistema cordinha heli - by Vinicius_TroLL - 21.10.2012, 20:34
Re: Sistema cordinha heli - by leandro123456 - 21.10.2012, 20:53
Re: Sistema cordinha heli - by Vinicius_TroLL - 21.10.2012, 21:04
Re: Sistema cordinha heli - by leandro123456 - 21.10.2012, 21:18
Re: Sistema cordinha heli - by Vinicius_TroLL - 21.10.2012, 21:25
Re: Sistema cordinha heli - by leandro123456 - 21.10.2012, 21:31
Re: Sistema cordinha heli - by Vinicius_TroLL - 21.10.2012, 21:44
Re: Sistema cordinha heli - by paulor - 21.10.2012, 22:00
Re: Sistema cordinha heli - by leandro123456 - 21.10.2012, 22:01
Re: Sistema cordinha heli - by Vinicius_TroLL - 21.10.2012, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)