Can someone help me. Convert zcmd to strcmd - 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: Can someone help me. Convert zcmd to strcmd (
/showthread.php?tid=211033)
Can someone help me. Convert zcmd to strcmd -
Gus_Stone - 14.01.2011
I want to convert this to strcmd or what it is called. This is a zcmd code.
Quote:
COMMAND:dropoff(playerid, params[])
{
new otherplayerid;
if(sscanf(params, "d", otherplayerid)) return SendClientMessage(playerid, 0xFFFFFF,"Usage /dropoff [ID]");
if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, 0xFFFFFF, "This player is not connected.");
if(IsPlayerInRangeOfPoint(playerid, 3.00,1698.6003,68.8721,29.3053)) return SendClientMessage(playerid, 0xFFFFFF,"You need to be near the cages to unload.");
if(IsPlayerInRangeOfPoint(otherplayerid, 3.00, 1698.6003, 68.8721, 29.3053)) return SendClientMessage(playerid, 0xFFFFF,"This player is not in range of the cage zone.");
{
if(PlayerInfo[playerid][pJob] == 1) return SendClientMessage(playerid, 0xFFFFFF,"You're not a mercenary");
{
if(PlayerTied[otherplayerid] > 0) return SendClientMessage(playerid, 0xFFFFFF,"This player is not tied.");
{
new rand = random(sizeof(CageSpawns));
SetPlayerPos(otherplayerid, CageSpawns[rand][0], CageSpawns[rand][1],CageSpawns[rand][2]);
SetPlayerFacingAngle(otherplayerid, CageSpawns[rand][3]);
}
}
}
return 1;
}
|
Re: Can someone help me. Convert zcmd to strcmd -
Babul - 14.01.2011
erm.. may i ask why you want to downgrade a command to work slower, and make it harder to implement/edit/give to other scripters?
my sugestion:
ZCMD.
its really easy to use. just extract the include, and copy it to pawno/include.
then at the top of your script, add a
it will work, you wont regret it ^^
Re: Can someone help me. Convert zcmd to strcmd -
Gus_Stone - 14.01.2011
But it doesn't work. Because all my other cmds are strcmd and if I use zcmd I can't use my other commands that are strcmd. how to fix this?