Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------[Create3DTextLabel]-----------------
- Create3DTextLabel("{0099FF}[{FFFFFF} LS-PD Equipment | COMMAND: /enter {0099FF}]{FFFFFF}", COLOR_YELLOWG, 1568.5770,-1689.9755,6.2188, 20.0, 0, 0);
- Create3DTextLabel("{0099FF}[{FFFFFF} LS-PD Equipment | COMMAND: /equipment {0099FF}]{FFFFFF}", COLOR_YELLOWG, 311.9560,-165.9318,999.6010, 20.0, 0, 0);
- //-----------------[OnPlayerCommandText]-----------------
- if(!strcmp(cmdtext, "/equipment", true))
- {
- if (!PlayerToPoint(100, playerid,311.9560,-165.9318,999.6010))
- {
- new lspdequip[] = "Nightstick\nSilenced 9mm\nDesert Eagle\nShotgun\nMP5\nM4\nAK-47\nSpraycan\nCamera\nParachute\nArmour";
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"List of Equips:",lspdequip,"Select","Cancel");
- }
- return 1;
- }
- if (strcmp(cmd, "/enter", true) == 0)
- {
- new Float:cx, Float:cy, Float:cz;
- GetPlayerPos(playerid, cx, cy, cz);
- if(PlayerToPointStripped(4, playerid,1568.5770,-1689.9755,6.2188, cx,cy,cz))
- {
- if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, WHITE,"You should be on foot before using this command.");
- GameTextForPlayer(playerid, "~w~Type /exit to leave.", 5000, 3);
- SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
- SetPlayerInterior(playerid,6);
- }
- return 1;
- }
- //-----------------[OnDialogResponse]-----------------
- if(dialogid == 1)
- {
- if(response)
- {
- if (listitem == 0)
- {
- GivePlayerWeapon(playerid, 3, 1);
- }
- }
- else if (listitem == 1)
- {
- GivePlayerWeapon(playerid, 23, 100);
- }
- }
- else if (listitem == 2)
- {
- GivePlayerWeapon(playerid, 24, 100);
- }
- }
- else if (listitem == 3)
- {
- GivePlayerWeapon(playerid, 25, 150);
- }
- }
- else if (listitem == 4)
- {
- GivePlayerWeapon(playerid, 29, 500);
- }
- }
- else if (listitem == 5)
- {
- GivePlayerWeapon(playerid, 31, 700);
- }
- }
- else if (listitem == 6)
- {
- GivePlayerWeapon(playerid, 30, 700);
- }
- }
- else if (listitem == 7)
- {
- GivePlayerWeapon(playerid, 41, 999999);
- }
- }
- else if (listitem == 8)
- {
- GivePlayerWeapon(playerid, 43, 50);
- }
- }
- else if (listitem == 9)
- {
- GivePlayerWeapon(playerid, 46, 1);
- }
- }
- else if (listitem == 10)
- {
- SetPlayerArmour(playerid, 100);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement