/work command not doing anything - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /work command not doing anything (
/showthread.php?tid=343427)
/work command not doing anything -
tyler12 - 17.05.2012
Hai guy's
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;
}
Re: /work command not doing anything -
JAMMIEISFTW - 17.05.2012
Its
pawn Код:
#include <a_samp>
#include <TM> //truckingmissions.inc
#include <zcmd>
At the top. and you should download sscanf2 by ******
And put this at the top too ( Below zcmd though )
ONLY after you have download sscanf 2 though.
EDIT:
Also,
It is
Not
Re: /work command not doing anything -
tyler12 - 17.05.2012
Quote:
Originally Posted by JAMMIEISFTW
Its
pawn Код:
#include <a_samp> #include <TM> //truckingmissions.inc #include <zcmd>
At the top. and you should download sscanf2 by ******
And put this at the top too ( Below zcmd though )
ONLY after you have download sscanf 2 though.
EDIT:
Also,
It is
Not
|
come again when you know what your on about o.OOOOOOOOOOOOOOOOOOOOOOOOOO
Re: /work command not doing anything -
Elysian` - 17.05.2012
Quote:
Originally Posted by JAMMIEISFTW
|
Urm smartass? You can use CMD:, COMMNAD or command.
Re: /work command not doing anything -
tyler12 - 18.05.2012
bump
Re: /work command not doing anything - Moh_ - 18.05.2012
afaik u must use GetVehicleModel
that function is only to get the server vehicle id, not the vehicle model id
link:
https://sampwiki.blast.hk/wiki/GetVehicleModel