public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(Civilian[issuerid] && GetPlayerWantedLevel(issuerid) == 0) { if(GetPlayerTeam(playerid) == Cops) { IncreaseWantedLevel(issuerid,4); SendClientMessage(issuerid,GetPlayerWantedLevel(is suerid),"[CCTV CRIME] - Shooting a Police Officer - Wanted Level Increased."); } if(Civilian[playerid] == 1) { IncreaseWantedLevel(issuerid,4); SendClientMessage(issuerid,GetPlayerWantedLevel(is suerid),"[CCTV CRIME] - Shooting Civilians - Wanted Level Increased."); } } return 1; } |
CMD:takedrugs(playerid,params[]) { new string[128]; if(sscanf(params,"")) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /takedrugs."); return 1; } if(TD[playerid] == 1) { SendClientMessage(playerid,COLOR_ERROR,"You are already taking drugs. please wait before you try taking them again."); return 1; } if(Jailed[playerid] >= 1) { SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are jailed."); return 1; } if(JailedA[playerid] >= 1) { SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are jailed."); return 1; } if(Cuffed[playerid] == 1) { SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while your are placed in handcuffs."); return 1; } if(IsKidnapped[playerid] == 1) { SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are kidnapped."); return 1; } if(Freezed[playerid] == 1) { SendClientMessage(playerid,COLOR_ERROR,"You can't use this command while you are freezed."); return 1; } IncreaseWantedLevel(playerid,3); HasWeed[playerid] -= 10; High[playerid] = 20; TD[playerid] = 1; ApplyAnimation(playerid,"PED","WALK_drunk",4.1,1,1 ,1,0,0,1); SendClientMessage(playerid,COLOR_ORANGE,"You have smoked 10 grams of weed. You are feeling very HIGH now."); SendClientMessage(playerid,GetPlayerWantedLevel(pl ayerid),"Crime Committed - Drug Abuse - Wanted Level Increased."); return 1; } |
{ SendClientMessage(playerid,COLOR_ERROR,"You have left the checkpoint robbery failed..."); RobbingDance[playerid] = 0; DanceRobbedRecently = 180; }
Why does everyone use the quote tag for code? The quote tag is for quotes, the code tag (and by extension the Pawn tag) is for code. Very straightforward, right? Why am I saying this? Because the quote tag does not preserve indentation. I do not even attempt to read such mess.
|