PHP код:
public OnPlayerText(playerid, text[])
{
if(ShowSkyText[playerid] == 1) {
if(text[0] == '1')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, 1686.9702,-1312.8329,872.7163);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '2')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, -2112.7942,659.1328,875.6769);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '3')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, 2343.6409,1521.8400,732.7235);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '4')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, -2325.4336,-1577.2311,831.6756);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '5')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, -227.6763,58.2109,882.4087);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '6')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, 530.2466,2342.7766,850.5984);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
if(text[0] == '7')
{
if(ShowSkyText[playerid] == 1)
{
GivePlayerWeapon(playerid, 46, 46);
SetPlayerPos(playerid, -1227.7010,1782.9180,896.1829);
SendClientMessage(playerid, -1, "This FS By AstanaLol");
}
}
}
return 1;
}