Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The Mafia Gate Commands.
- CMD:tmgate1o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate1,2676.1999511719,1811.5,17.39999961853,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE1O");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 1 is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate1c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate1,2690.2998046875,1809.599609375,17.39999961853,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE1C");
- format(string ,sizeof string,"Yo %s, The Mafia Society's gate 1 is closing, Cya!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate2o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate2,2800.1000976563,1547.5,12.300000190735,3.0/*,0,291.99462890625*/);
- CMDMessageToTM(playerid,"TMGATE2O");
- format(string ,sizeof string,"Hello %s, The Mafia Base's gate is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate2c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate2,2802.400390625,1534.5,12.300000190735,3.0/*,0,292*/);
- CMDMessageToTM(playerid,"TMGATE2C");
- format(string ,sizeof string,"Yo %s, The Mafia Base's gate is closing, cya!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate3o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate3,2892.6999511719,2225.8999023438,10,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE3O");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 3 is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate3c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate3,2899.2001953125,2225.2001953125,10,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE3C");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 3 is closing!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate4o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate4,2892.8000488281,2225.3000488281,10.10000038147,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE4O");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 4 is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate4c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate4,2885.8000488281,2225.8999023438,10.10000038147,3.0/*,0,357.99499511719*/);
- CMDMessageToTM(playerid,"TMGATE4C");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 4 is closing!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate5o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate5,2867.5,2226.3999023438,10.199999809265,3.0/*,0,357.98950195313*/);
- CMDMessageToTM(playerid,"TMGATE5O");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 5 is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate5c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate5,2875,2226.5,10.199999809265,3.0/*,0,357.98950195313*/);
- CMDMessageToTM(playerid,"TMGATE5C");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 5 is closing!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate6o(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate6,2869.3000488281,2226.8999023438,10.10000038147,3.0/*,0,357.98950195313*/);
- CMDMessageToTM(playerid,"TMGATE6O");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 6 is opening, Please wait!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
- CMD:tmgate6c(playerid, params[])
- {
- if(PlayerInfo[playerid][TM] >= 1)
- {
- new string[128];
- MoveDynamicObject(tmgate6,2861.6005859375,2226.7998046875,10.10000038147,3.0/*,0,357.98950195313*/);
- CMDMessageToTM(playerid,"TMGATE6C");
- format(string ,sizeof string,"Hello %s, The Mafia Society's gate 6 is closing!",pName(playerid));
- SendClientMessage(playerid,0xAFAFAFAA,string);
- } else return ShowPlayerDialog(playerid, 40, DIALOG_STYLE_MSGBOX, "{ff0000}ERROR", "{ffff00}You need to be a{414141} [TM] - The Mafia Family {ffff00}member to use this command!", "Okay", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement