31.07.2012, 23:58
Ok, so I guess this is a very very nooby question, but I am new to scripting.
How do i make this script here a command to use on someone? I think i got a start, but it ain't working.
And if you can please explain everything you add or edit.
How do i make this script here a command to use on someone? I think i got a start, but it ain't working.
pawn Код:
COMMAND:torture(playerid, params[])
{
new giveplayerid;
if(IsPlayerAdmin(playerid))
{
if(sscanf(params, "is[24]", giveplayerid)) return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /torture [PlayerID]");
else
{
SetPlayerPos(playerid, 300.0837,-129.4271,1004.0625);
SetPlayerInterior(playerid, 7);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerFacingAngle( playerid, 95.22 );
wep1 = CreateDynamicObject(339, 270.5772,-129.6093,1005.6752, 0.0, 0.0, 0.0, -1, -1, -1, 100.0);
MoveDynamicObject(wep1, 300.5394,-129.4422,1004.0625, 1);
SetTimer("torture", 1500, 1);
}
}
return 1;
}