Help with a command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with a command (
/showthread.php?tid=223164)
Help with a command -
Roma555 - 08.02.2011
When make this team once again, it is necessary that there were same actions
Код:
if(strcmp("/mig", cmdtext, true, 10) == 0)
{
if(migprov[playerid] == 0)
{
DestroyObject(mig[playerid]);
mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "one");
GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
migprov[playerid]=1;
}
return 1;
}
Re: Help with a command -
SaW_[VrTx] - 09.02.2011
What?! I just.. what? Try to explain better.
Re: Help with a command -
Roma555 - 09.02.2011
When make this team once again, it is necessary that there were same actions
Re: Help with a command -
Roma555 - 09.02.2011
Here is how that so
But how correctly to make?
Код:
if(strcmp("/mig", cmdtext, true, 10) == 0)
{
if(migprov[playerid] == 0)
{
DestroyObject(mig[playerid]);
mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "one");
GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
migprov[playerid]=1;
}
else
{
DestroyObject(mig[playerid]);
mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "one");
GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
migprov[playerid]=1;
}
return 1;
}