Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmd, "/stats", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (gPlayerLogged[playerid] != 0)
- {
- ShowStats(playerid,playerid);
- /*GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s flips open his PDA and looks at his stats.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in!");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/dn", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz-2);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/up", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+2);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if (strcmp(cmd, "/fly", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:px, Float:py, Float:pz, Float:pa;
- GetPlayerFacingAngle(playerid,pa);
- if(pa >= 0.0 && pa <= 22.5) //n1
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- if(pa >= 332.5 && pa < 0.0) //n2
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- if(pa >= 22.5 && pa <= 67.5) //nw
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-15, py+15, pz+5);
- }
- if(pa >= 67.5 && pa <= 112.5) //w
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-30, py, pz+5);
- }
- if(pa >= 112.5 && pa <= 157.5) //sw
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px-15, py-15, pz+5);
- }
- if(pa >= 157.5 && pa <= 202.5) //s
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px, py-30, pz+5);
- }
- if(pa >= 202.5 && pa <= 247.5)//se
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+15, py-15, pz+5);
- }
- if(pa >= 247.5 && pa <= 292.5)//e
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+30, py, pz+5);
- }
- if(pa >= 292.5 && pa <= 332.5)//e
- {
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerPos(playerid, px+15, py+15, pz+5);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/lt", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly+2, slz);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/rt", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly-2, slz-2);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement