- 0
problema /removespike
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
calin1996
[pawn]if(strcmp(cmd, "///spikema", true) ==0 || strcmp(cmd, "///skma", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Nu poti intinde banda de tepi din masina!");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateStrip(plocx,plocy,plocz,ploca);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nu esti politist!");
}
}
}
if(strcmp(cmd, "/removespikes", true) ==0 || strcmp(cmd, "/rsk", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Nu poti inlatura banda de tepi din masina!");
return 1;
}
DeleteClosestStrip(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nu esti politist!");
}
}
}
if(strcmp(cmd, "/remallspikes", true) ==0 || strcmp(cmd, "/rask", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pRank] >= 5 && IsACop(playerid))
{
DeleteAllStrip();
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "DISPECER: Toate blocajele cu tepi din zona aiu fost scoase din ordinul lui %s.", sendername);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nu esti politist si sa ai peste grad 5!");
}
}
}[/pawn]
Cand dau /removespikes apare in chat ca iam scot dar ei inca sunt acolo,nu fac pana dar.....
0 answers to this question
Recommended Posts