05.11.2015, 13:57
PHP код:
CMD:teleport(playerid, params[]) {
if(isnull(params)) return SendClientMessage(playerid, -1, "/teleport [Name] (Name = Bayside/Octane Springs!");
if(!strcmp(params, "Bayside", true)) {
SetPlayerPos(playerid, -2455.5942,2254.1738,4.9807);
SetPlayerFacingAngle(playerid, 0);
SetPlayerVirtualWorld(playerid, 1);
format(string, SOS, "You have been teleported to Bayside Warehouse!");
SendClientMessage(playerid, green, string);
}
else if(!strcmp(params, "Octane Springs", true)) {
SetPlayerPos(playerid, 397.8003,1157.7520,8.3481);
SetPlayerFacingAngle(playerid, 0);
SetPlayerVirtualWorld(playerid, 1);
format(string, SOS, "You have been teleported to Octane Springs!");
SendClientMessage(playerid, green, string);
}
else SendClientMessage(playerid, -1, "Not a valid teleport name! (Available Teleport names - Bayside and Octane Springs");
return 1;
}