21.10.2012, 21:18
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;
}