14.07.2011, 13:43
I made this code,put it in OnPlayerUpdate nut anyway half of the code isn't working:
So the client messages can't be sent why?
pawn Код:
if(model == 541 && gTimeTravel[playerid] == 1 && GetPlayerSpeed(playerid) == 154)
{
SetPlayerPos(playerid,953.7294,-5127.9546,10.8525);
if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(vehicleid,953.7294,-5127.9546,10.8525) && SetVehicleHealth(vehicleid,0);
SetPlayerWeather(playerid,16);
new Float:x,Float:y,Float:z;
SetPlayerPos(playerid,x,y,z+3);
SendClientMessage(playerid,COLOR_RED,"2012.Aquring infos......");
SendClientMessage(playerid,COLOR_RED,"System damage:99%,car destroyed,sending survival infos....");
SendClientMessage(playerid,COLOR_RED,"System:Car detected on island,around.........");
SendClientMessage(playerid,COLOR_RED,"SYSTEM STATE:CRITICAL,DAMAGE 100%,shutting down....");
gTimeTravel[playerid] = 0;
}