25.10.2009, 03:40
To take a car then. Order to fasten seat belt
{ if (strcmp("/fasten", cmdtext, true, 10) == 0) { if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle to use this command"); else SendClientMessage(playerid, 0xF0F8FFAA "you have buckled up use /unfasten to unbuckle."); return 1; } { if (strcmp("/unfasten", cmdtext, true, 10) == 0) { if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle use this command!"); else SendClientMessage(playerid, 0xF0F8FFAA "you have unbuckled your seat belt."); return 1; }
Originally Posted by BLAbla93
Код:
{ if (strcmp("/fasten", cmdtext, true, 10) == 0) { if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle to use this command"); else SendClientMessage(playerid, 0xF0F8FFAA "you have buckled up use /unfasten to unbuckle."); return 1; } { if (strcmp("/unfasten", cmdtext, true, 10) == 0) { if(GetPlayerState(playerid) !=2) return SendClientMessage(playerid, 0xAA3333AA, "You need to be in a vehicle use this command!"); else SendClientMessage(playerid, 0xF0F8FFAA "you have unbuckled your seat belt."); return 1; } |