26.06.2012, 15:04
PHP код:
#include <a_samp>
#define blue 0x0A16BF
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/LSHospital", true)) // teleports to the hospital in Los Santos
{
SetPlayerPos(playerid, 2029.961181, 1413.184936, 16.998857);
SendClientMessage(playerid, blue, "You have teleported to Los Santos Hospital.");
return 1;
}
if(!strcmp(cmdtext, "/LSAirport", true)) // teleports to the airport in LS
{
SetPlayerPos(playerid, 1642.62, -2333.79, 13.55);
SendClientMessage(playerid, blue, "You have teleported to Los Santos Airport.");
return 1;
}
if(!strcmp(cmdtext, "/LSPD", true)) // teleports to the police department in Los Santos
{
SetPlayerPos(playerid, 1553.175537, 1675.653198, 16.195312);
SendClientMessage(playerid, blue, "You have teleported to Los Santos Police Department.");
return 1;
}
return 0;
}