dcmd_spike(playerid,params[])
{
#pragma unused params
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateSpike(plocx,plocy,plocz,ploca);
SendClientMessage(playerid, -1, "/rspike to Remove This");
return 1;
}
dcmd_rspike(playerid,params[])
{
#pragma unused params
for(new i = 0; i < sizeof(SpikeInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
{
if(SpikeInfo[i][sCreated] == 1)
{
SpikeInfo[i][sCreated]=0;
SpikeInfo[i][sX]=0.0;
SpikeInfo[i][sY]=0.0;
SpikeInfo[i][sZ]=0.0;
DestroyObject(SpikeInfo[i][sObject]);
return 1;
}
}
}
return 1;
}
dcmd_rallspikes(playerid,params[])
{
#pragma unused playerid
#pragma unused params
for(new i = 0; i < sizeof(SpikeInfo); i++)
{
if(SpikeInfo[i][sCreated] == 1)
{
SpikeInfo[i][sCreated]=0;
SpikeInfo[i][sX]=0.0;
SpikeInfo[i][sY]=0.0;
SpikeInfo[i][sZ]=0.0;
DestroyObject(SpikeInfo[i][sObject]);
}
}
return 1;
}
if(GetPlayerSkin(playerid) != 285) return false;
error 076: syntax error in the expression, or invalid function call
dcmd_spike(playerid,params[])
{
#pragma unused params
if(GetPlayerSkin != 285) return false;
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateSpike(plocx,plocy,plocz,ploca);
SendClientMessage(playerid, -1, "/rspike to Remove This");
return 1;
}
dcmd_spike(playerid,params[])
{
#pragma unused params
if(GetPlayerSkin(playerid) != 285) return false;//This would show something like SERVER: Invalid Command
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateSpike(plocx,plocy,plocz,ploca);
SendClientMessage(playerid, -1, "/rspike to Remove This");
return 1;
}
|
if(GetPlayerSkin != 285) return false; |
|
if(GetPlayerSkin(playerid) != 285) return false; |
SendClientMessage(playerid, -1, "This Command available for SWAT Members only");
if(GetPlayerSkin(playerid) != 285) return SendClientMessage(playerid, -1, "This Command available for SWAT Members only");
|
Код:
if(GetPlayerSkin(playerid) != 285) return SendClientMessage(playerid, -1, "This Command available for SWAT Members only"); https://sampwiki.blast.hk/wiki/GetPlayerSkin https://sampwiki.blast.hk/wiki/Control_Structures For further stuffs like this. |
Rep