13.10.2013, 01:49
pawn Код:
if (strcmp("/ramping", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 1)
{SendClientMessage(playerid, 0xFFFF00FF, "Ramping disabled!");
Enabled[playerid]=0;
Pers[playerid]=0;
return 1;
}
if(Enabled[playerid] == 0)
{
SendClientMessage(playerid, 0xFFFF00FF, "Ramping enabled!");
SendClientMessage(playerid, 0xFFFF00FF, "Press the Special Action Key ( Ctrl or Alt Gr ) to create a ramp!");
Enabled[playerid]=1;
Pers[playerid]=1655;
return 1;
}
}
if (strcmp("/my ramp 1", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You have to enable ramping first! (/ramping)!");
SendClientMessage(playerid, 0xFFFF00FF, "Ramp changed to Type 1!");
Pers[playerid]=1655;
return 1;
}
if (strcmp("/my ramp 2", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You have to enable ramping first! (/ramping)!");
SendClientMessage(playerid, 0xFFFF00FF, "Ramp changed to Type 2!");
Pers[playerid]=1632;
return 1;
}
if (strcmp("/my ramp 3", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You have to enable ramping first! (/ramping)!");
SendClientMessage(playerid, 0xFFFF00FF, "Ramp changed to Type 3!");
Pers[playerid]=1631;
return 1;
}
if (strcmp("/my ramp 4", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You have to enable ramping first! (/ramping)!");
SendClientMessage(playerid, 0xFFFF00FF, "Ramp changed to Type 4!");
Pers[playerid]=8302;
return 1;
}
if (strcmp("/my ramp 5", cmdtext, true, 10) == 0)
{
if(Enabled[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You have to enable ramping first! (/ramping)!");
SendClientMessage(playerid, 0xFFFF00FF, "Ramp changed to Type 5!");
Pers[playerid]=1503;
return 1;
}
if (strcmp("/my ramp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF0000FF, "Usage: /my ramp [1-5]!");
return 1;
}
if (strcmp("/ramphelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF0000FF, "Welcome to the Ramping-Info!");
SendClientMessage(playerid, 0xFFFFFFFF, "• Use /ramping to enable ramping.");
SendClientMessage(playerid, 0xFFFFFFFF, "• Use /my ramp [1-5] to change the type of your ramp.");
SendClientMessage(playerid, 0xFFFFFFFF, "• To create a ramp use Special Action Key ( ''Strg'' or ''Alt Gr'' )");
SendClientMessage(playerid, 0xFFFFFFFF, "• To disable ramping type /ramping again.");
SendClientMessage(playerid, 0xFFFF00FF, "This Filterscript was made by [WsR]RyDeR and Jeffry.");
return 1;
}