07.10.2011, 14:40
ok so all i wanna make is make a teleport that send to all players. for example. I go to /sf and it will announce to all players that I go to /sf
So I have this one.
if(!strcmp(cmdtext, "/sf", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -2031.5537,174.0473,28.4972);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 269.5064);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
new string[50];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,1;
format(string, sizeof(string), "[%s]: Has Done >> /sf << Why Not Join Him?",name);
SendClientMessageToAll(0xFFFFFFF,string);
}
else
{
SetPlayerPos(playerid, -2033.0007,148.0766,28.8359);
SetPlayerFacingAngle(playerid, 267.6227);
}
SetPlayerInterior(playerid, 0);
GameTextForPlayer(playerid,"San Fierro",4000,6);
return 1;
}
after the compilation there are no errors found. but in game there are no announce. so what could be wrong here?
So I have this one.
if(!strcmp(cmdtext, "/sf", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -2031.5537,174.0473,28.4972);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 269.5064);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
new string[50];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,1;
format(string, sizeof(string), "[%s]: Has Done >> /sf << Why Not Join Him?",name);
SendClientMessageToAll(0xFFFFFFF,string);
}
else
{
SetPlayerPos(playerid, -2033.0007,148.0766,28.8359);
SetPlayerFacingAngle(playerid, 267.6227);
}
SetPlayerInterior(playerid, 0);
GameTextForPlayer(playerid,"San Fierro",4000,6);
return 1;
}
after the compilation there are no errors found. but in game there are no announce. so what could be wrong here?