Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:sgc1(playerid,params[]) {
- if(PlayerInfo[playerid][SG] >= 1) {
- new string[128];
- if(PlayerInfo[playerid][blip] == 0) {
- CMDMessageToSG(playerid,"SGC1");
- PlayerInfo[playerid][pColour] = GetPlayerColor(playerid);
- PlayerInfo[playerid][blip] = 1;
- SetPlayerColor(playerid,0xC0C0C0AA);
- format(string,sizeof(string),"You marker has been colored");
- } else
- {
- KillTimer( BlipTimer[playerid] );
- PlayerInfo[playerid][blip] = 0;
- SetPlayerColor(playerid, PlayerInfo[playerid][pColour] );
- format(string,sizeof(string),"You marker has been back to old color");
- }
- return SendClientMessage(playerid,blue,string);
- } else return SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: You need to be SG member rank 1 to use this command");
- }
- CMD:sgc2(playerid,params[]) {
- if(PlayerInfo[playerid][SG] >= 1) {
- new string[128];
- if(PlayerInfo[playerid][blip] == 0) {
- CMDMessageToSG(playerid,"SGC2");
- PlayerInfo[playerid][pColour] = GetPlayerColor(playerid);
- PlayerInfo[playerid][blip] = 1;
- BlipTimer[playerid] = SetTimerEx("SGLight", 1000, 1, "i", playerid);
- format(string,sizeof(string),"You marker has been highlighted");
- } else
- {
- KillTimer( BlipTimer[playerid] );
- PlayerInfo[playerid][blip] = 0;
- SetPlayerColor(playerid, PlayerInfo[playerid][pColour] );
- format(string,sizeof(string),"You marker has been stopped highlightinging");
- }
- return SendClientMessage(playerid,blue,string);
- } else return SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: You need to be SG member rank 1 to use this command");
- }
- forward public SGLight(playerid);
- public SGLight(playerid) {
- if(PlayerInfo[playerid][blipS] == 0) {
- SetPlayerColor(playerid, 0x33FF33AA);
- PlayerInfo[playerid][blipS] = 1;
- }
- else {
- SetPlayerColor(playerid, 0xFF0000AA);
- PlayerInfo[playerid][blipS] = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment