Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AUTOR: ADIKOO1302
- #include <a_samp>
- #include <sscanf2>
- #include <kolory>
- #include <zcmd>
- #define D_WARPLIST 543
- new Float:WarpPos[][] =
- {
- {-2309.1504,-1629.1630,483.7366},//WARP ID 0
- {984.5064,2030.0667,11.4688} //WARP ID 1 ect.
- };
- CMD:warp(playerid, params[])
- {
- //Tutaj powinno być if czy player to admin, ale większość ma inne zmienne ;)
- new warpnumber, string[100];
- if(sscanf(params, "d", warpnumber))
- SendClientMessage(playerid, COLOR_RED, "UZYJ: /warp [NR WARPU]");
- else
- {
- if(warpnumber <= sizeof(WarpPos))
- {
- SetPlayerPos(playerid, WarpPos[warpnumber][0], WarpPos[warpnumber][1], WarpPos[warpnumber][2]);
- format(string, sizeof(string), "Przeniesiono na warp {e24444}>ID: %d<", warpnumber);
- SendClientMessage(playerid, COLOR_GREEN, string);
- }
- else
- {
- format(string, sizeof(string), "{44e2e2}Wrap o {e24444}>ID: %d<{44e2e2} nie istnieje !", warpnumber);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- return 1;
- }
- CMD:warpy(playerid, params[])
- {
- new stringwarplist[][] =
- {
- "0 - Gora Chillad\n", // tu sobie sami wpiszcie nazwy poszczegolnych id warpow
- "1 - Domek"
- };
- new longstring[1500];
- for(new i; i < sizeof stringwarplist; i++) strcat(longstring, stringwarplist[i][0]);
- ShowPlayerDialog(playerid, D_WARPLIST, DIALOG_STYLE_MSGBOX, "Warpy serwera !", longstring, "OK", #);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment