public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/maddog\", true)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); LinkVehicleToInterior(vehicleid, 0); SetPlayerInterior(playerid, 0); SetVehicleZAngle(vehicleid,0); return SetVehiclePos(vehicleid,1246.3573,-820.3669,84.1406); }else{ SetPlayerPos(playerid,1246.3573,-820.3669,84.1406); SetPlayerInterior(playerid, 0); } GameTextForPlayer(playerid,\"udv a ~r~mad dognal\",2500,3); return 1; } return 0;}
if(strcmp(cmdtext, \"/hj\", true) == 0){if(IsPlayerInAnyVehicle(playerid)){ SetVehiclePos(GetPlayerVehicleID(playerid),1303.6528,-1351.7795,404.7109);} else { SetPlayerPos(playerid,1303.6528,-1351.7795,404.7109); SetPlayerFacingAngle(playerid, 301.5956);}return 1;}
public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/maddog\", true)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); LinkVehicleToInterior(vehicleid, 0); SetPlayerInterior(playerid, 0); SetVehicleZAngle(vehicleid,0); return SetVehiclePos(vehicleid,1246.3573,-820.3669,84.1406); }else{ SetPlayerPos(playerid,1246.3573,-820.3669,84.1406); SetPlayerInterior(playerid, 0); } GameTextForPlayer(playerid,\"udv a ~r~mad dognal\",2500,3); return 1; } return 0;} Kérlek legközelebb használd a [*code][*/code] tageket csillag nélkül!