16.11.2012, 20:19
hey im new , and i dont know very well scripting , i maded command /home and it teles me to my selected place, but if i tele with car , my car gone and i tele wihtout car , . I want tele with car to not car lose
if(IsPlayerInVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
}
else
{
//your code
}
if(strcmp("/home", cmdtext, true, 10) == 0) { SetPlayerPos(Here your coords etc); SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z); } return 1; |