21.05.2014, 10:29
compiled not help me fix it.
Show us your code please. We need to know which lines as well so if you can make a comment on each line that would be great!!!
|
{ if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command."); if(IsPlayerCuffed(playerid) || IsPlayerTazed(playerid) || IsPlayerTied(playerid) || Boxing[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time."); TogglePlayerControllable(playerid, 1); new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+5); return 1; } |
{
if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid,COLOR_GREY, "You are not allowed to use command.");
if(IsPlayerCuffed(playerid) || IsPlayerTazed(playerid) || IsPlayerTied(playerid) || Boxing[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You can't do that at this time.");
TogglePlayerControllable(playerid, 1);
new Float:Pos1[3];
GetPlayerPos(playerid, Pos1[0], Pos1[1], Pos1[2]);
SetPlayerPos(playerid, Pos1[0], Pos1[1], Pos1[2]+5);
return 1;
}
{ new string[128], Float:Pos[4]; if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command."); if(!IsACop(playerid) && !IsADOC(playerid) && !IsASAAF(playerid) && !IsFBI(playerid) && !IsSASD(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an LSPD Oficer/FBI Agent."); if(!PlayerInfo[playerid][pFacDuty]) return SendClientMessage(playerid, COLOR_GREY, "You are not on duty."); if(PlayerInfo[playerid][pFacRank] < 4) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. (Rank 4+)"); GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); GetPlayerFacingAngle(playerid,Pos[3]); CreateStrip(Pos[0], Pos[1], Pos[2],Pos[3]); format(string, sizeof(string), "LSPD: %s has created a spike strip.", RPN(playerid)); SendCopMessage(COLOR_BLUE, string); return 1; }