22.02.2010, 21:51
Would i be able to put all my commands into a include?
Then include it on my gamemode?
Then include it on my gamemode?
#include "..\script\cmds.inc"
public OnPlayerCommandText(playerid, cmdtext[])
{
#include "..\cmds.txt"
return 0;
}
if(strcmp(cmdtext, "/givecar", true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PutPlayerInVehicle(playerid, CreateVehicle(411, x, y, z, 0.0, -1, -1, -1), 0);
return 1;
}