17.05.2012, 16:08
Hai guy's
my /work command dosent return SERVER:Unknown command. but it dosent do anything o.O
lil help?
my /work command dosent return SERVER:Unknown command. but it dosent do anything o.O
lil help?
pawn Код:
#include "a_samp"
#include "TM" //truckingmissions.inc
#include "zcmd"
#define COLOR_WHITE 0xFFFFFFFF
public OnPlayerFinishMission(playerid)
{
return 1;
}
public OnGameModeInit()
{
AddPlayerClass(0,0,0,3,0,0,0,0,0,0,0);
return 1;
}
/* Commands */
COMMAND:work(playerid,params[])
{
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerInVehicle(playerid,515)) { //roadtrain
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) {
//xoomer trailer
if(GetVehicleTrailer(GetPlayerVehicleID(playerid) == 584)) {
CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
}
//ore trailer
else if(GetVehicleTrailer(GetPlayerVehicleID(playerid) == 450)) {
CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
}
}
else {
SendClientMessage(playerid,COLOR_WHITE,"You need to attach a trailer");
}
}
//burrito
else if(IsPlayerInVehicle(playerid,482)) {
CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
}
}
else {
SendClientMessage(playerid,COLOR_WHITE,"Your not in a vehicle");
}
return 1;
}