Air Strike System rep+++ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Air Strike System rep+++ (
/showthread.php?tid=334544)
Air Strike System rep+++ -
iOmar - 15.04.2012
==> hey guys. I am using zcmd in my script. I want an airstrike system. like "CMD:airstrike" and when we type it in server after 5 sec there will huge blast on the place where the player was standing first while typing /airstrike..
I am using This Rank System.
I want like Player with 2000 score can do this.....
pawn Код:
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 150)// score is greater than 0 and less than 150 it rookie ... same below
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your Rank is Rookie! (1)");
return 1;
}
if(GetPlayerScore(playerid) >= 150 && GetPlayerScore(playerid) < 300)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Private! (2)");
return 1;
}
if(GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) < 450)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Corporal! (3)");
return 1;
}
if(GetPlayerScore(playerid) >= 450 && GetPlayerScore(playerid) < 600)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Sergeant! (4)");
return 1;
}
if(GetPlayerScore(playerid) >= 600 && GetPlayerScore(playerid) < 800)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Captain (5)!");
return 1;
}
if(GetPlayerScore(playerid) >= 800 && GetPlayerScore(playerid) < 1200)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Major (6)!");
return 1;
}
if(GetPlayerScore(playerid) >= 1200 && GetPlayerScore(playerid) < 2000)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Brigadier (7)!");
return 1;
}
if(GetPlayerScore(playerid) >= 2000 && GetPlayerScore(playerid) < 3500)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is General! (8)");
return 1;
}
if(GetPlayerScore(playerid) >= 3500)
{
SendClientMessage(playerid,GREEN,"<=======Your Rank=======>!");
SendClientMessage(playerid,YELLOW,"Your rank is Commander! (9)!");
Re: Air Strike System rep+++ -
Faisal_khan - 15.04.2012
Untested hope it works:
pawn Код:
COMMAND:airstrike(playerid, params[])
{
if(GetPlayerScore(playerid) >= 2000)
{
return SendClientMessage(playerid, 0xFF0000FF, "You dont have enough score, you need 2000 score");
}
else
{
new float:X, float:Y, float:Z,
GetPlayerPos(playerid, X, Y, Z);
SetTimer("5 seconds for the bomb to drop", 5000, false);
CreateExplosion(X, Y, Z, 7, 20.0);
SendClientMessage(playerid, 0xFF0000FF, "Bomb was dropped!");
}
return 1;
}