#define FILTERSCRIPT |
#include <a_samp> |
#if defined FILTERSCRIPT |
//Menu new Menu: DMZones; |
DMZones = CreateMenu("DMZones", 1, 18.0, 102.0, 165.0, 165.0); |
public OnFilterScriptInit() { } |
public OnFilterScriptInit() { DMZones = CreateMenu("DMZones", 1, 18.0, 102.0, 165.0, 165.0); } |
AddMenuItem(MenuID, Column, "Title"); |
public OnFilterScriptInit() { DMZones = CreateMenu("DMZones", 1, 18.0, 102.0, 165.0, 165.0); AddMenuItem(DMZones, 0, "DildoDM"); } |
public OnPlayerSelectedMenuRow(playerid, row) |
new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == DMZones) { switch(row) { case 0: { //Effect } |
stock TeleWithCar(playerid, telename[], Float:Vx, Float:Vy, Float:Vz, Float:Va, Float:Px, Float:Py, Float:Pz, Float:Pa, interior) { DMZone[playerid] = 0; ResetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); new b[256], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),Vx,Vy,V z); SetVehicleZAngle(GetPlayerVehicleID(playerid),Va); LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,interior); } else { InCar[playerid] = false; SetPlayerPos(playerid,Px,Py,Pz); SetPlayerFacingAngle(playerid,Pa); SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); } PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, interior); format(b, sizeof(b), "*** %s has teleported to /%s", playerName, telename); SendClientMessageToAll(COLOR_JOIN,b); } |
TeleWithCar(playerid, telename[],X, Y, Z, Rot, X, Y, Z, Rot, interior) |
TeleWithCar(playerid, "dildodm",2526.65,-1202.77,67.98,0,2526.65,-1202.77,67.98,0,0); |
new DMZone[MAX_PLAYERS]; new bool: InCar[MAX_PLAYERS]; |
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == DMZones) { switch(row) { case 0: { TeleWithCar(playerid, "dildodm",2526.65,-1202.77,67.98,0,2526.65,-1202.77,67.98,0,0); GivePlayerWeapon(playerid, 10, 50);// This gives him a dildo :P } } } } |
public OnPlayerCommandText(playerid, cmdtext[]) { } |
if(strcmp(cmdtext, "/teles", true) == 0) { ShowMenuForPlayer(DMZones, playerid); TogglePlayerControllable(playerid, 0); return 1; } |
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/teles", true) == 0) { ShowMenuForPlayer(DMZones, playerid); TogglePlayerControllable(playerid, 0); return 1; } return 0; } |
#endif |
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT //Menu new Menu: DMZones; // ================================================== ======================== // new DMZone[MAX_PLAYERS]; new bool: InCar[MAX_PLAYERS]; public OnFilterScriptInit() { DMZones = CreateMenu("DMZones", 1, 18.0, 102.0, 165.0, 165.0); AddMenuItem(DMZones, 0, "DildoDM"); } public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == DMZones) { switch(row) { case 0: { TeleWithCar(playerid, "dildodm",2526.65,-1202.77,67.98,0,2526.65,-1202.77,67.98,0,0); } } } } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/teles", true) == 0) { ShowMenuForPlayer(DMZones, playerid); TogglePlayerControllable(playerid, 0); return 1; } return 0; } #endif ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// stock TeleWithCar(playerid, telename[], Float:Vx, Float:Vy, Float:Vz, Float:Va, Float:Px, Float:Py, Float:Pz, Float:Pa, interior) { DMZone[playerid] = 0; ResetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); new b[256], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),Vx,Vy,V z); SetVehicleZAngle(GetPlayerVehicleID(playerid),Va); LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,interior); } else { InCar[playerid] = false; SetPlayerPos(playerid,Px,Py,Pz); SetPlayerFacingAngle(playerid,Pa); SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000); } PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, interior); format(b, sizeof(b), "*** %s has teleported to /%s", playerName, telename); SendClientMessageToAll(0x74E80099,b); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
Originally Posted by Niixie
i'd rather use dialogs, easier to make and looks better
|
Originally Posted by Teneckz
nice but.. I prefer dialogs because are sexy
|