27.02.2010, 13:01
oke guys i have made a LSP base but every body kan open it
how i do it that only LSP can open it so yes where can i place it this is my script:
#include <a_samp>
#define COLOR_GREEN 0x00FF00AA
new Poort;
new gate;
main()
{
print("\n00000000000000000000000000000000");
print("TutorialGameMode by Sandra18[NL]");
print("00000000000000000000000000000000\n");
}
public OnGameModeInit()
{
SetGameModeText("TutorialGameMode");
AddPlayerClass(93, 2494.4888, -1675.5619, 13.3359, 55.9011,0,0,0,0,0,0);
//CreateObject(id, X, Y, Z, X-rotatie, Y-rotatie, Z-rotatie);
Poort = CreateObject(980, 1540.842896, -1627.726807, 15.164000, 0.0000, 0.0000, 89.3814);
gate = CreateObject(980, 1559.047363, -1634.260132, 12.606243, 268.1446, 183.8151, 4.2972);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-812.0018,-1949.3617,9.3004); // Waar de speler te zetten voor het spawn-menu
SetPlayerCameraPos(playerid,-816.4528,-1945.0082,9.0269); // Camera voor het spawn-menu
SetPlayerCameraLookAt(playerid,-812.0018,-1949.3617,9.3004); // Waar moet de camera naar toe kijken?
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/closelsp", cmdtext, true, 10) == 0)
{
MoveObject(Poort, 1540.842896, -1627.726807, 15.164000, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE close.");
return 1;
}
if (strcmp("/closelsp", cmdtext, true, 10) == 0)
{
MoveObject(Poort, 1540.842896, -1627.726807, 15.164000, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE close.");
return 1;
}
if (strcmp("/gatedown", cmdtext, true, 10) == 0)
{
MoveObject(gate, 1559.047363, -1634.260132, 12.606243, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE down.");
return 1;
}
if (strcmp("/gateup", cmdtext, true, 10) == 0)
{
MoveObject(gate, 1559.047363, -1634.260132, 27.256020, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE up.");
return 1;
}
//LSP
CreateObject(987, 1539.833862, -1605.900269, 15.786779, 0.0000, 0.0000, 269.7592);
CreateObject(987, 1539.851807, -1602.389526, 15.923369, 0.0000, 0.0000, 269.7592);
CreateObject(987, 1551.643799, -1602.537231, 15.906813, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1563.643677, -1602.599243, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1575.551270, -1602.649414, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1587.523560, -1602.611450, 15.911283, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1599.525635, -1602.666138, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1607.983276, -1602.630981, 15.911283, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1607.914185, -1614.400391, 15.921880, 0.0000, 0.0000, 90.240;
CreateObject(987, 1607.818970, -1626.402832, 15.921880, 0.0000, 0.0000, 89.3814);
CreateObject(987, 1607.829956, -1637.998657, 15.921880, 0.0000, 0.0000, 90.240;
CreateObject(3550, 1604.856689, -1638.417725, 18.227341, 0.0000, 0.0000, 269.7592);
CreateObject(3749, 1541.845581, -1627.686157, 18.249023, 0.0000, 0.0000, 89.3814);
return 0;
}
help me plz
how i do it that only LSP can open it so yes where can i place it this is my script:
#include <a_samp>
#define COLOR_GREEN 0x00FF00AA
new Poort;
new gate;
main()
{
print("\n00000000000000000000000000000000");
print("TutorialGameMode by Sandra18[NL]");
print("00000000000000000000000000000000\n");
}
public OnGameModeInit()
{
SetGameModeText("TutorialGameMode");
AddPlayerClass(93, 2494.4888, -1675.5619, 13.3359, 55.9011,0,0,0,0,0,0);
//CreateObject(id, X, Y, Z, X-rotatie, Y-rotatie, Z-rotatie);
Poort = CreateObject(980, 1540.842896, -1627.726807, 15.164000, 0.0000, 0.0000, 89.3814);
gate = CreateObject(980, 1559.047363, -1634.260132, 12.606243, 268.1446, 183.8151, 4.2972);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-812.0018,-1949.3617,9.3004); // Waar de speler te zetten voor het spawn-menu
SetPlayerCameraPos(playerid,-816.4528,-1945.0082,9.0269); // Camera voor het spawn-menu
SetPlayerCameraLookAt(playerid,-812.0018,-1949.3617,9.3004); // Waar moet de camera naar toe kijken?
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/closelsp", cmdtext, true, 10) == 0)
{
MoveObject(Poort, 1540.842896, -1627.726807, 15.164000, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE close.");
return 1;
}
if (strcmp("/closelsp", cmdtext, true, 10) == 0)
{
MoveObject(Poort, 1540.842896, -1627.726807, 15.164000, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE close.");
return 1;
}
if (strcmp("/gatedown", cmdtext, true, 10) == 0)
{
MoveObject(gate, 1559.047363, -1634.260132, 12.606243, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE down.");
return 1;
}
if (strcmp("/gateup", cmdtext, true, 10) == 0)
{
MoveObject(gate, 1559.047363, -1634.260132, 27.256020, 4.000000);
SendClientMessage(playerid, COLOR_GREEN, "GATE up.");
return 1;
}
//LSP
CreateObject(987, 1539.833862, -1605.900269, 15.786779, 0.0000, 0.0000, 269.7592);
CreateObject(987, 1539.851807, -1602.389526, 15.923369, 0.0000, 0.0000, 269.7592);
CreateObject(987, 1551.643799, -1602.537231, 15.906813, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1563.643677, -1602.599243, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1575.551270, -1602.649414, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1587.523560, -1602.611450, 15.911283, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1599.525635, -1602.666138, 15.911283, 0.0000, 0.0000, 179.6226);
CreateObject(987, 1607.983276, -1602.630981, 15.911283, 0.0000, 0.0000, 180.4820);
CreateObject(987, 1607.914185, -1614.400391, 15.921880, 0.0000, 0.0000, 90.240;
CreateObject(987, 1607.818970, -1626.402832, 15.921880, 0.0000, 0.0000, 89.3814);
CreateObject(987, 1607.829956, -1637.998657, 15.921880, 0.0000, 0.0000, 90.240;
CreateObject(3550, 1604.856689, -1638.417725, 18.227341, 0.0000, 0.0000, 269.7592);
CreateObject(3749, 1541.845581, -1627.686157, 18.249023, 0.0000, 0.0000, 89.3814);
return 0;
}
help me plz